package com.tjetc.service;

import com.github.pagehelper.PageInfo;
import com.tjetc.domain.Department;
import com.tjetc.vo.Result;

public interface DepartmentService{


    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    Result selectAll();

    Result selAllDepartment();

    PageInfo<Department> getByNameandPage(String name, Integer pageNum, Integer pageSize);

    Result save(Department department);

//    Result selectAll();
}
